import request from '@/utils/request'

// 我的收藏
export const favorites = () => {
  return request.get('/user/favorites')
}
// 我的出租
export const Myrent = () => {
  return request.get('/user/houses')
}
// 轮播图数据请求
export const getSwiper = () => {
  return request.get('/home/swiper')
}
// 租房小组数据请求
export const getHouseGroup = (id) => {
  console.log(id)
  return request({
    url: '/home/groups/',
    params: {
      id
    }
  })
}
// 获取城市列表
export const getCityList = (data) => {
  return request.get('/area/city', {
    params: data
  })
}
// 获取热门城市
export const getHotCity = () => {
  return request.get('/area/hot')
}
